package com.lequ.monitor.broadcast;

import com.lequ.monitor.Globals;
import android.util.Log;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootBroadcastReceiver extends BroadcastReceiver{
  
        private String TAG="BootBroadcastReceiver";
       
      	@Override
	    public void onReceive(Context context, Intent intent) {
			Log.i(TAG,"###########################################222222222222222222");
	       if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){
	    	   Log.i(TAG,"###########################################11111111111111");
	           context.startService(new Intent(Globals.SMS_SERVICE));	           
	           //context.startService(new Intent(Globals.LOCATION_SERVICE)); 
	       }
        }
		
      	
		
}
